// 引入 Vue
import Vue from 'vue'
import App from './App'
// 全局路由 js
import router from './router'
// import './assets/css/icon.css'
// import './backviews/backhome/directives'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入axios
import axios from 'axios'
import Cookies from 'js-cookie'
// 引入 utls.js
import { domain } from './utils/url.js'
// 引入全局的 backutils.js
import backutils from './utils/backutils'
// 注册全局的组件
import backcomponent from './components/back_component'
// I18n js
import i18n from './utils/i18n/I18n.js'

// elementUI
Vue.use(ElementUI)
// 引入全局的 backutils.js
Vue.prototype.$backutils = backutils
// 注册组件
Vue.use(backcomponent)
// 使用 js-cookie
Vue.use(Cookies)

// 配置axios
// url1,url2地址
axios.defaults.baseM1URL = domain.Base_M1_URL
axios.defaults.baseM2URL = domain.Base_M2_URL
axios.defaults.baseM3URL = domain.Base_M3_URL
axios.defaults.baseM4URL = domain.Base_M4_URL

// 挂载 vue
new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount('#app')
